package travel;

import java.util.Scanner;

public class Main {
    public static Travel login(){
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入你的用户名");
        String name=scanner.nextLine();
        System.out.println("请做出你的选择");
        System.out.println("1.游客信息");
        System.out.println("2.旅游套餐");
        System.out.println("3.查看记录");
        int choice=scanner.nextInt();
        switch (choice){
            case 1:
                return new Tourist(name);
            case 2:
                return new TourPackages(name);
            case 3:
                return new View(name);
            default:
                return null;
        }
    }
    public static void main(String[] args) {
        Travel travel=login();
        while(true){
            int choice= travel.menu();
        }
    }
}
